Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
Textarea is not enabled even if I made [attr.disabled]="false" in Angular

I'm using ngModel for textarea, and I wish to enable and disable textarea based on condition. I binded in right way and the value also changing to [attr.disabled]="false", but the field not enabling.

<textarea pInputTextarea
                        [attr.disabled]="condition"
                        [(ngModel)]="echangesInternesNotes"
                        (ngModelChange)="onEchangesInternesNotesChange()"></textarea>

Inspected code in browser console

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I just found the problem, sometimes even a small glitch make us sick, I used [attr.disabled] in my code, so it is not working. I changed to [disabled] and now it is working.

<textarea pInputTextarea
                        [disabled]="condition"
                        [(ngModel)]="echangesInternesNotes"
                        (ngModelChange)="onEchangesInternesNotesChange()"></textarea>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!